package com.frxuexi.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.GlideUtil
import com.frxuexi.lib_base.entity.CommentBeanItem
import com.frxuexi.video.R

class CommentAdapter:BaseQuickAdapter<CommentBeanItem,BaseViewHolder>(R.layout.item_comments) {
    override fun convert(helper: BaseViewHolder, item: CommentBeanItem) {
        helper.setText(R.id.com_user,item.username)
        helper.setText(R.id.com_msg,item.msg)
        helper.setText(R.id.com_time,item.createtime)
        GlideUtil.loadRoundImg(item.icon,helper.getView(R.id.com_img))
    }
}